/**
 * 
 */
package cn.ipenta.core.controller;

import org.springframework.boot.autoconfigure.web.ErrorController;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import springfox.documentation.annotations.ApiIgnore;

/**
 * @ClassName: MainsiteErrorController
 * @Description: TODO
 * @author ipenta
 * @date 2017年4月26日 下午1:20:49
 * 
 */
@Controller
@ApiIgnore
public class MainsiteErrorController implements ErrorController {

	private static final String ERROR_PATH = "/error";
	private static final String PAGE_404 = "error/404";

	@RequestMapping(value = ERROR_PATH)
	public String handleError() {
		return PAGE_404;
	}

	@Override
	public String getErrorPath() {
		// TODO Auto-generated method stub
		return ERROR_PATH;
	}

}